package org.argetr.resim.ui.parts;

import java.io.File;

import org.eclipse.jface.viewers.ICellEditorValidator;

public class CellFilePathValidator implements ICellEditorValidator{

	public String isValid(Object value) {
		String sErrMessage = "File not found";
		try
		{
		 return (new File(value.toString())).exists()?null:sErrMessage;
		}
		catch(Exception exp)
		{}
		return sErrMessage;
	}
}
